Message

Constructors

Link copied to clipboard
constructor(@Nullable text: CharSequence, timestamp: Long, @Nullable person: Person)
Creates a new Message with the given text, timestamp, and sender.
constructor(@Nullable text: CharSequence, timestamp: Long, @Nullable sender: CharSequence)
Constructor

Functions

Link copied to clipboard
Get the MIME type of the data pointed to by the URI.
Link copied to clipboard
open fun getDataUri(): Uri
Get the the Uri pointing to the content of the message.
Link copied to clipboard
Get the extras Bundle for this message.
Link copied to clipboard
Returns the Person sender of this message.
Link copied to clipboard
Get the text used to display the contact's name in the messaging experience
Link copied to clipboard
Get the text to be used for this message, or the fallback text if a type and content Uri have been set
Link copied to clipboard
open fun getTimestamp(): Long
Get the time at which this message arrived in ms since Unix epoch.
Link copied to clipboard
Sets a binary blob of data and an associated MIME type for a message.